<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/llistat-lloguers">
        <html>
            <head>
                <title>Llistat de lloguers</title>
            </head>
            <body>
                <h1>Llistat de lloguers</h1><br />
    <xsl:for-each select="lloguer">
                <h2><xsl:value-of select="model"/></h2>
                <table border="0">
                    <tr><td><xsl:value-of select="motor"/></td></tr>
                    <tr><td>Quantitat:</td><td><xsl:value-of select="quantitat"/></td></tr>
                    <tr><td>Dies:</td><td><xsl:value-of select="dies"/></td></tr>
                    <tr><td>Descompte:</td><td><xsl:value-of select="descompte"/></td></tr>
                    <tr><td>Preu:</td><td><xsl:value-of select="price"/></td></tr>
                </table>
    </xsl:for-each>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet> 
